package com.ruoyi.ai.controller;

import com.ruoyi.school.api.RemoteSchoolTopService;
import com.ruoyi.school.api.model.TopVO;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 主界面top榜单
 * @author zhaoYuFei
 */
@RestController
@RequestMapping("/getTop")
public class TopController {
    @Autowired
    private RemoteSchoolTopService remoteSchoolTopService;
    /**
     * 热点学校top
     */
    @GetMapping("/school")
    public List<TopVO> getSchoolTop(){
        return remoteSchoolTopService.getSchoolTop();
    }
    /**
     * 热点专业top
     */
    @GetMapping("/speciality")
    public List<TopVO> getSpecialityTop(){
        return remoteSchoolTopService.getSpecialityTop();
    }
}
